﻿using CommonAdmin.Util;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;

namespace CommonAdmin.Web.Controllers
{
    public class MainController : BaseController
    {
		public MainController(ILogger<MainController> logger, ISqlSugarClient db) : base(logger, db) { }
		public IActionResult Login()
		{
			return View();
		}
		public IActionResult Index()
        {
#if DEBUG

			HttpContext.Session.SetString(Constants.Session_Key_UserId, Constants.SystemId);			
#endif
			ViewBag.User = base.GetCurrentUser();
			return View();
        }
        public IActionResult Overview()
        {
            return View();
        }
        public IActionResult Error()
        {
            return View();
        }
    }
}
